package org.reliablesource.prism.ui.aspects;

import org.eclipse.swt.graphics.ImageData;
import org.reliablesource.prism.ui.plugin.PrismPlugin;

/**
 *
 *  SaveThread.java
 *  Copyright (c) 2007, Reliable Source, Inc. All Rights Reserved
 *
 *	Created on: Jan 3, 2007 
 *  @author Dennis Park <a href="mailto:dennis.park@gmail.com">dennis.park@gmail.com</a>
 *
 */

public class SaveThread extends Thread {
	protected ImageData imgData;
	protected String name;
	protected String fileType;
	public SaveThread(ImageData _imageData, String _name, String _fileType) {
		imgData = _imageData;
		name = _name;
		fileType = _fileType;
	}

	public void run() {
		PrismPlugin.getDefault().saveSWTImage(imgData, name, fileType);
	}
}
